"""添加线索页面"""
from selenium.webdriver.common.by import By

from page.base_page import BasePage


class AddCluePage(BasePage):
    url="/index.php?m=leads&a=add"
    #定位器
    btn_back_locator = (By.CSS_SELECTOR, "#form1 > table > tfoot > tr > td > input:nth-child(3)")
    clue_link_locator = (By.LINK_TEXT, "什么是线索池？")

    def click_clue_link(self):
        #点击添加线索的什么是线索池
        self.find_element(self.clue_link_locator).click()
    def click_clue_back(self):
        #点击添加线索的返回
        self.find_element(self.btn_back_locator).click()

